<include file='Common:header'/>
<title></title>
<css file='__PUBLIC__/Admin/Css/common.css'/>
<script type="text/javascript" src='__PUBLIC__/Admin/Js/jquery-1.8.2.min.js'></script>
<script type='text/javascript'>
	$(function () {
		$('#sub').click(function () {
			if ($('select[name=tid]').val() == '') {
				alert('请选择所属类型');
				return false;
			};
		});
	});
</script>
</head>
<body>
	<div class='status'>
		<span>添加子级分类</span>
		<a href="{:U('index')}" class='add'>返回分类列表</a>
	</div>
	<form action="{:U('runAddCate')}" method='post'>
	<table class="table">
		<tr>
			<td>所属类型：</td>
			<td>
				<select name="tid">
					<option value="">请选择</option>
					<foreach name='type' item='v'>
						<option value="{$v.id}">{$v.name}</option>
					</foreach>
				</select>
			</td>
		</tr>
		<tr>
			<td width='45%' align='right'>子分类名称：</td>
			<td>
				<input type="text" name='name'>
			</td>
		</tr>
		<tr>
			<td colspan='2' align='center'>
				<input type="hidden" name='pid' value='{$Think.get.pid}'/>
				<input type="submit" value='保存添加' class='add' style='float:none;margin: 20px 0' id='sub'>
			</td>
		</tr>
	</table>
	</form>
</body>
</html>